package com.ruoyi.xzs.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 学生答卷对象 x_paper_answer
 * 
 * @author li
 * @date 2023-03-08
 */
public class PaperAnswer extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 试卷id */
    @Excel(name = "试卷id")
    private Long paperId;

    /** 最终得分（千分制） */
    @Excel(name = "最终得分", readConverterExp = "千=分制")
    private Long userScore;

    /** 做对题目数量 */
    @Excel(name = "做对题目数量")
    private Long questionCorrect;

    /** 做题时间（秒） */
    @Excel(name = "做题耗时", readConverterExp = "秒")
    private Long doTime;

    /** 试卷状态（1 待判分 2 完成） */
    @Excel(name = "试卷状态", readConverterExp = "1=待判分,2=完成")
    private Long status;

    /** 学生 */
    @Excel(name = "学生")
    private String createUser;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "提交时间")
    private Date createTime;

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPaperId(Long paperId) 
    {
        this.paperId = paperId;
    }

    public Long getPaperId() 
    {
        return paperId;
    }
    public void setUserScore(Long userScore) 
    {
        this.userScore = userScore;
    }

    public Long getUserScore() 
    {
        return userScore;
    }
    public void setQuestionCorrect(Long questionCorrect) 
    {
        this.questionCorrect = questionCorrect;
    }

    public Long getQuestionCorrect() 
    {
        return questionCorrect;
    }
    public void setDoTime(Long doTime)
    {
        this.doTime = doTime;
    }

    public Long getDoTime()
    {
        return doTime;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setCreateUser(String createUser) 
    {
        this.createUser = createUser;
    }

    public String getCreateUser() 
    {
        return createUser;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("paperId", getPaperId())
            .append("userScore", getUserScore())
            .append("questionCorrect", getQuestionCorrect())
            .append("doTime", getDoTime())
            .append("status", getStatus())
            .append("createUser", getCreateUser())
            .append("createTime", getCreateTime())
            .toString();
    }
}
